const fs = require('fs');
const path = require('path');

const version = new Date().toISOString();
const filePath = path.resolve(__dirname, '../public/version.json');

fs.writeFileSync(filePath, JSON.stringify({ version }, null, 2), 'utf-8');
console.log('✅ version.json 已生成:', version);